// For facebook
window.fbAsyncInit = function() {
  FB.init({
    appId      : '1a38e31f71b216b68bb4a571fa8bdd2c', // App ID
    status     : true, // check login status
    cookie     : true, // enable cookies to allow the server to access the session
    oauth      : true, // enable OAuth 2.0
    xfbml      : true  // parse XFBML
  });
};

  // Load the SDK Asynchronously
  (function(d){
   var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
   js = d.createElement('script'); js.id = id; js.async = true;
   js.src = "//connect.facebook.net/en_US/all.js";
   d.getElementsByTagName('head')[0].appendChild(js);
  }(document));

// End Facebook
